/*
package com.szeastroc.interceptor;

import com.szeastroc.bean.system.SystemUser;
import com.szeastroc.common.Constant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;

*/
/**
 * 登录拦截器
 *//*

@Component
public class LoginInterceptor extends HandlerInterceptorAdapter {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        StringBuffer url = request.getRequestURL();
        Object obj = request.getSession().getAttribute(Constant.USER_SESSION);
        if (obj == null || !(obj instanceof SystemUser)) {
            response.sendRedirect("/index");
            return false;
        }
        return true;
    }

}*/
